package com.authserver.config.oauth2;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

@Configuration
public class TokenConfig {
    @Bean
    TokenStore tokenStore(){
        //使用内存tokenStore，将token存在内存中
        return new InMemoryTokenStore();
    }
}
